home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CyberMycha 2001 August
/
CMycha200108.iso
/
Zaczarowane
/
start.swf
/
scripts
/
DefineButton2_485
/
BUTTONCONDACTION on(release).as
< prev
Wrap
Text File
|
2001-06-06
|
924b
|
22 lines
on(release){
stopDrag();
x = _root.mc_mainElemR.mc_elementyR.mc_Rr11._x;
y = _root.mc_mainElemR.mc_elementyR.mc_Rr11._y;
mx = _root.mc_mainElemR.mc_elementyR._x;
my = _root.mc_mainElemR.mc_elementyR._y;
_root.kupa = x + "," + (y - (446 - my));
ly = 446 - my;
if(-460 < _root.mc_mainElemR.mc_elementyR.mc_Rr11._x && _root.mc_mainElemR.mc_elementyR.mc_Rr11._x < -420 && _root.mc_mainElemR.mc_elementyR.mc_Rr11._y - ly < -250 && -290 < _root.mc_mainElemR.mc_elementyR.mc_Rr11._y - ly)
{
setProperty(_root.mc_mainElemR.mc_elementyR.mc_Rr11, _X, -441);
setProperty(_root.mc_mainElemR.mc_elementyR.mc_Rr11, _Y, -271 + ly);
_root.mc_mainElemR.mc_elementyR.mc_Rr11.gotoAndStop(2);
_root.r11 = true;
}
else
{
setProperty(_root.mc_mainElemR.mc_elementyR.mc_Rr11, _X, px);
setProperty(_root.mc_mainElemR.mc_elementyR.mc_Rr11, _Y, py);
}
}